<?php /* Smarty version Smarty-3.0.8, created on 2012-10-27 07:17:31
         compiled from "G:\xampp\htdocs\gy78/template\front/sidebar.html" */ ?>
<?php /*%%SmartyHeaderCode:25324508b1a0bde7417-05446318%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    'dcaa728df6611200a78588f1e5c008ba6350e46f' => 
    array (
      0 => 'G:\\xampp\\htdocs\\gy78/template\\front/sidebar.html',
      1 => 1351293448,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '25324508b1a0bde7417-05446318',
  'function' => 
  array (
  ),
  'has_nocache_code' => false,
)); /*/%%SmartyHeaderCode%%*/?>
<!--  sidear start --><div id="sidebar" role="complementary"><!-- Search Start --><div id="search"><form method="post" id="searchform" action="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'search'),$_smarty_tpl);?>
"><span class="st"><input type="text" value="" name="s" id="s" class="searchtxt" /></span><span class="ss"><input type="submit" name="submit" value="" class="searchsm"  onclick="javascript: return document.getElementById('s').value!='';"/></span></form></div><div class="clear"></div><!-- Search End --><ul><li id="meta-2" class="widget widget_meta"><h2 class="widgettitle">用户</h2><ul id="userlogined"  <?php if ($_smarty_tpl->getVariable('userinfo')->value==true){?>style="display:;"<?php }else{ ?>style="display:none;" <?php }?> ><li>欢迎你：<a id="screenname"><?php echo $_smarty_tpl->getVariable('userinfo')->value['screenname'];?>
</a></li><li>上次登录：<a id="lastlogin"><?php echo $_smarty_tpl->getVariable('userinfo')->value['lastlogin'];?>
</a></li><li>登录次数：<a id="logincount"><?php echo $_smarty_tpl->getVariable('userinfo')->value['logincount'];?>
</a></li><li><a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'post','a'=>'write'),$_smarty_tpl);?>
">发表文章</a> &nbsp;&nbsp;  &nbsp;&nbsp;<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'admin','a'=>'index'),$_smarty_tpl);?>
">管理</a>  </li><li><a href="#" onclick="return userloginout();">登出</a></li></ul><ul id="userlogin"   <?php if ($_smarty_tpl->getVariable('userinfo')->value==true){?>style="display:none;"<?php }else{ ?>style="display:;" <?php }?>><li>用户名：<input type="text" id="username" /></li><li>密　码：<input type="password" id="password" /></li><li><input type="checkbox" id="remember" value='1'/>下次自动登录</li><li>　　　<input type="submit" value="　登录　"  onclick="return loginsubmit();" />　<input type="reset"value="　重置　" /></li></ul></li><li id="categories-2" class="widget widget_categories"><h2 class="widgettitle">分类目录</h2><ul><?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('category')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?><li class="cat-item cat-item-4"><?php echo $_smarty_tpl->tpl_vars['item']->value['leftpad'];?>
<a href="<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'category','id'=>$_smarty_tpl->tpl_vars['item']->value['id']),$_smarty_tpl);?>
" title="查看<?php echo $_smarty_tpl->tpl_vars['item']->value['dispname'];?>
下的所有文章"><?php echo $_smarty_tpl->tpl_vars['item']->value['name'];?>
</a> </li><?php }} ?></ul></li><li id="recent-posts-2" class="widget widget_recent_entries"><h2 class="widgettitle">近期文章</h2><ul><?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('topnews')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?><li><a href="/#" title="<?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
" onclick="return checkacl(<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
);"><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</a></li><?php }} ?></ul></li><li id="recent-comments-2" class="widget widget_recent_comments"><h2 class="widgettitle">近期评论</h2><ul id="recentcomments"><?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('topcomments')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?><li class="recentcomments"><?php echo $_smarty_tpl->tpl_vars['item']->value['screenname'];?>
发表在《<a href="/#" onclick="return checkacl(<?php echo $_smarty_tpl->tpl_vars['item']->value['id'];?>
);"><?php echo $_smarty_tpl->tpl_vars['item']->value['title'];?>
</a>》</li><?php }} ?></ul></li><li id="archives-2" class="widget widget_archive"><h2 class="widgettitle">文章归档</h2><ul><?php  $_smarty_tpl->tpl_vars['item'] = new Smarty_Variable;
 $_from = $_smarty_tpl->getVariable('archive')->value; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
if ($_smarty_tpl->_count($_from) > 0){
    foreach ($_from as $_smarty_tpl->tpl_vars['item']->key => $_smarty_tpl->tpl_vars['item']->value){
?><li><a href='<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'archive','d'=>$_smarty_tpl->tpl_vars['item']->value['created']),$_smarty_tpl);?>
' title='<?php echo $_smarty_tpl->tpl_vars['item']->value['created'];?>
'><?php echo $_smarty_tpl->tpl_vars['item']->value['created'];?>
(<?php echo $_smarty_tpl->tpl_vars['item']->value['postcount'];?>
)</a></li><?php }} ?></ul></li><li id="text-2" class="widget widget_text"><h2 class="widgettitle">背景音乐</h2><div class="textwidget"><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="165" height="40" id="niftyPlayer1" align=""><param name=movie value="/attached/media/niftyplayer.swf?file=/attached/media/<?php echo rand('1','2');?>
.mp3&as=1"><param name=quality value=high><embed src="/attached/media/niftyplayer.swf?file=/attached/media/<?php echo rand('1','2');?>
.mp3&as=1" quality=high bgcolor=#FFFFFF width="165" height="40" name="niftyPlayer1" align="" type="application/x-shockwave-flash" swLiveConnect="true" pluginspage="http://www.macromedia.com/go/getflashplayer"></embed></object></div></li><li id="archives-2" class="widget widget_archive"><h2 class="widgettitle">友情链接</h2><ul><li><a href="http://www.usst.edu.cn" target="_BLANK">上海理工大学</a></li></ul></li></ul></div>   <!-- end sidebar  --><script type="text/javascript">function checkacl(id,pub){if (pub=='1'){window.location.href="/index.php?c=main&a=article&id="+id;return true;}$.post("<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'checkacl'),$_smarty_tpl);?>
",{},function(msg){if (msg.msg=="OK"){window.location.href="/index.php?c=main&a=article&id="+id;}else{alert('您需要登录后才能访问！');return false;}},'json');}function loginsubmit(){if ($("#username").val()==""){	   alert("用户名不能为空！");$("#username").focus();return false;}if ($("#password").val()==""){	   alert("密码不能为空！");$("#password").focus();return false;}$.post("<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'main','a'=>'login'),$_smarty_tpl);?>
",{'username':$("#username").val(),'password':$("#password").val(),'remember':$("#remember").attr('checked')},function(e){if (e.msg=='OK'){$("#userlogin").hide();$("#screenname").html(e.screenname);$("#lastlogin").html(e.lastlogin);$("#logincount").html(e.logincount);$("#userlogined").show();}else{alert('用户名或密码错误！');return false;}},'json') ;}function userloginout(){$.post("<?php echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['spUrl'][0][0]->__template_spUrl(array('c'=>'admin','a'=>'logout'),$_smarty_tpl);?>
");$("#userlogin").show();$("#userlogined").hide();}</script>